//
//  LYCityDataDBTool.h
//  artist
//
//  Created by Jay_Apple on 16/4/18.
//  Copyright © 2016年 viviyoo. All rights reserved.
//

#import <Foundation/Foundation.h>

@class LYCityDataModel;



@interface LYCityDataDBTool : NSObject
/**
 *  储存城市数据
 */
+ (void)saveCityData:(NSArray *)citydata withType:(cityDataType)type;
/**
 *  获取开通城市数据
 */
+ (NSArray <LYCityDataModel *>*)getOpenCityData;

/**
 *  获取地区id
 */
+ (int)getIDWithName:(NSString *)name;

/**
 *  根据名字查子地区
 */
+ (NSArray <NSString *>*)getSubAreaWithName:(NSString *)name;

/**
 *  取出省份
 */
+ (NSArray <NSString *>*)getProvinces;

/**
 *  取出上级地区id
 */
+ (NSInteger)getSuperCityIDWithAreaName:(NSString *)area;

@end
